﻿using System.ComponentModel.DataAnnotations;

namespace Faser_Shop.Models.RequestModel
{
    public class QueryProductListRM
    {
        /// <summary>
        /// 商品分类Id
        /// </summary>
        public int? CategoryId { get; set; }
        /// <summary>
        /// 商品关键字
        /// </summary>
        public string Keyword { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        [Range(1, int.MaxValue, ErrorMessage = "PageIndex必须大于1")]
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 每页数量, 超过100条默认100条
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}
